<template>
<div class="container">
  <mu-raised-button label="我要答题" @click="toAnswer('/subject')" class="demo-raised-button" primary/>
  <mu-raised-button label="我要出题" @click="toAddQuestion" class="demo-raised-button" primary/>
  <mu-raised-button label="排行榜" @click="toAnswer('/rankSubject')" class="demo-raised-button" primary/>
</div>
</template>

<script>
	export default {
 	data () {
      return {
        
      }
    },
    mounted(){
      
    },
    methods: {
      	toAnswer(val){
//    		let that=this
      		this.$router.push({
      			path:val
      		})
      	},
      	toAddQuestion(){
      		
      	}
    }
}
</script>
<style>
  .container{
    display: flex;
    flex-wrap: wrap;
  }
  .demo-raised-button {
    margin: 12px;
  }
</style>


